package oas.domain;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import oas.db.AttendanceRepository;
import oas.db.UserRepository;

/**
 * 
 * 考勤信息类
 * 
 * @author wjy
 * @version 1.0.0
 *
 */
public class Attendance {

	private Long id;
	private User user;
	private Date date;
	private Date attendanceTime;
	private String status;
	
	@Autowired
	private UserRepository userResitory;
	
	/**
	 * @param id 考勤信息id
	 * @param user 考勤用户
	 * @param date 考勤所属日期
	 * @param attendanceTime 签到时间
	 * @param status 状态
	 */
	public Attendance(Long id, User user, Date date, Date attendanceTime, String status) {
		super();
		this.id = id;
		this.user = user;
		this.date = date;
		this.attendanceTime = attendanceTime;
		this.status = status;
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the user
	 */
	public User getUser() {
		return user;
	}

	/**
	 * @param user the user to set
	 */
	public void setUser(User user) {
		this.user = user;
	}

	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}

	/**
	 * @return the attendanceTime
	 */
	public Date getAttendanceTime() {
		return attendanceTime;
	}

	/**
	 * @param attendanceTime the attendanceTime to set
	 */
	public void setAttendanceTime(Date attendanceTime) {
		this.attendanceTime = attendanceTime;
	}

	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}
	
	
}
